<?php

/*   __________________________________________________
    |  Obfuscated by YAK Pro - Php Obfuscator          |
    |              on 2018-07-17 15:20:05              |
    |    GitHub: https://github.com/pk-fr/yakpro-po    |
    |__________________________________________________|
*/
namespace MmqmMarket\controller\mobile;

defined("IN_IA") || die("Access Denied");
class OrderSubmit extends \MmqmMarket\controller\BaseController
{
    public function __construct($Site, $arguments)
    {
        parent::__construct($Site, $arguments);
        empty($GLOBALS["_GPC"]["Action"]) || empty($GLOBALS["_GPC"]["Method"]) || ($GLOBALS["_GPC"]["Action"] = preg_replace("/[^a-zA-Z]/", '', $GLOBALS["_GPC"]["Action"])) && ($GLOBALS["_GPC"]["Method"] = preg_replace("/[^a-zA-Z]/", '', $GLOBALS["_GPC"]["Method"])) && ($ActionClass = "\\MmqmMarket\\model\\" . "{$GLOBALS["_GPC"]["Action"]}") && method_exists($ActionClass, $GLOBALS["_GPC"]["Method"]) && $ActionClass::{$GLOBALS["_GPC"]["Method"]}(1);
        method_exists($this, $GLOBALS["_GPC"]["ac"]) && ($this->{$GLOBALS["_GPC"]["ac"]}() && die || die);
        $GLOBALS["PARAMS"] = array("getActiveItemsInCartForOrderCreate" => \MmqmMarket\model\Cart::getActiveItemsInCartForOrderCreate(), "ActiveMarket" => \MmqmMarket\model\Market::getById(\MmqmMarket\model\Member::getActiveMarketID()));
        include $this->template();
    }
    private function submitOrderAndPay()
    {
        $MarketOrderSN = \MmqmMarket\model\Order::submit();
        die(json_encode($MarketOrderSN));
    }
}